package com.ophiux.micro.core.domain.page.repository;

import java.util.List;

import com.ophiux.micro.core.domain.page.PageConfig;
import com.ophiux.utils.exception.OphiuxRepositoryException;

/**
 * 分页查询   --仓储
 * @author chenh
 *
 */
public interface IPageRepository <T> {

	/**
	 * 分页查询
	 * @param config
	 * @return
	 */
	public List<T> selectPageData(PageConfig config) throws OphiuxRepositoryException;
	
	/**
	 * 获取查询总数量
	 * @param config
	 * @return
	 */
	public int selectTotalCount(PageConfig config) throws OphiuxRepositoryException;
	
}
